package com.uchengwang.functions.http.config;

import com.uchengwang.functions.http.listener.IHttpManager;

/**
 * Created by U城网 on 2017/10/21.
 */

public interface RyConfig {
    String RCGROUP_GROUP_CYCLE = "/rcgroup/group/cycle";//创建一个社圈群

    //获取token
    public interface Token{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/token";
    }

    /**
     * 创建一个纳新群
     * */
    public interface RecruitGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/rcgroup/recruit/group";
    }

    /**
     * 创建一个活动报名群
     * */
    public interface PublishGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/rcgroup/group/publish";
    }

    /**
     * 创建一个好友群
     * */
    public interface FriendGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/rcgroup/group/friend";
    }

    /**
     * 创建一个班级群
     * */
    public interface ClassGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/rcgroup/group/class";
    }

    /**
     * 创建一个组织群
     * */
    public interface BarGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/rcgroup/group/bar";
    }

    /**
     * 创建一个老乡群
     * */
    public interface LXGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/rcgroup/group/lx";
    }

    /**
     * 创建一个兴趣群
     * */
    public interface XQGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/rcgroup/group/xq";
    }

    /**
     * 获取群列表 加上一个群ID 就是 获取某个群的信息
     * */
    public interface Groups{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_put = IHttpManager.RequestMethod.PUT;//修改群信息
        String URL = "/rcgroup/group";
    }

    /**
     * 获取与我有关的群
     * */
    public interface MyGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/group/my";
    }

    /**
     * 加入一个群[无需申请]
     * */
    public interface JoinGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.PUT;
        String URL = "/rcgroup/group/join";
    }

    /**
     * 退出一个群
     * */
    public interface ExitGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.PUT;
        String URL = "/rcgroup/group/exit";
    }

    /**
     * 获取群成员
     * */
    public interface GroupMember{
        IHttpManager.RequestMethod mthod = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/group/member";
    }

    /**
     * 申请加入一个群/处理申请
     * */
    public interface ApplyGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        IHttpManager.RequestMethod method_put = IHttpManager.RequestMethod.PUT;//对一个申请处理[群主]
        String URL = "/rcgroup/group/apply";
    }

    /**
     * 邀请加入群/对邀请处理
     * */
    public interface InviteGroup{
        IHttpManager.RequestMethod method_post = IHttpManager.RequestMethod.POST;//邀请人加群
        IHttpManager.RequestMethod method_put = IHttpManager.RequestMethod.PUT;//对邀请处理[用户]
        String URL = "/rcgroup/group/invite";
    }

    /**
     * 群主查看来自用户的申请
     * */
    public interface ApplyAdminGroup{
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/group/apply/admin";
    }

    /**
     * 查看我的申请[用户]
     * */
    public interface ApplyUserGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/group/apply/user";
    }

    /**
     * 踢人出群
     * */
    public interface KickGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.PUT;
        String URL = "/rcgroup/group/kick";
    }

    /**
     * 解散一个群
     * */
    public interface DeleteGroup{
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.PUT;
        String URL = "/rcgroup/group/delete";
    }

    /**
     * 获取我收到的邀请
     * */
    public interface MyAcceptInvite{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/group/invite/get";
    }

    /**
     * 获取我发送的邀请
     * */
    public interface MySendInvite{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/group/invite/send";
    }

    /**
     *查看我的申请未读数和邀请未读数  未读消息 applyUnread[申请未读] inviteUnread[邀请未读]
     * */
    public interface UnreadGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/rcgroup/group/unread";
    }

    /**
     *转让一个群
    * */
    public interface TranferGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.PUT;
        String URL = "/rcgroup/group/tranfer";
    }
}
